(function($) {
    var comment_callback = function(response) {

        var info = {};
        info.uniq = uniq;
        info.cid = response.commentID;


        $.ajax({
		   type: "POST",
		   data: {info: info},
		   url: "/scmedia/fb-comment/calculate",
		   dataType: "json",
		   success: function(msg){
            //console.log(msg);
		   }
		});
		
    }

    window.onload = function() {
        FB.Event.subscribe('comment.create', comment_callback);
    };
})(jQuery);